
<template>
    <el-table :data="list" style="width: 100%">
        <el-table-column prop="name" label="姓名" width="180"></el-table-column>
        <el-table-column prop="score" label="得分" width="180"></el-table-column>
    </el-table>

    
</template>
<script>
import scoreApi from '@/api/score'
export default {
    data(){
        return {
            list:[]
        }
    },
    created(){
        this.fetchData();
    },
    methods:{
        fetchData(){
            scoreApi.getPersonalList().then(response => {
                this.list=response.data;
            });
        }
    }
}
</script>